package entities;

import services.impl.StandardOPs;
import java.util.List;
import java.util.LinkedList;
import java.util.ArrayList;
import java.util.Arrays;
import java.time.LocalDate;
import java.io.Serializable;
import java.lang.reflect.Method;

public class WorkoutSession implements Serializable {
	
	/* all primary attributes */
	private String SessionId;
	private LocalDate StartTime;
	private LocalDate EndTime;
	
	/* all references */
	private List<SessionRecord> SessionToSessionRecord = new LinkedList<SessionRecord>(); 
	private WorkoutSchedule SessionToSchedule; 
	
	/* all get and set functions */
	public String getSessionId() {
		return SessionId;
	}	
	
	public void setSessionId(String sessionid) {
		this.SessionId = sessionid;
	}
	public LocalDate getStartTime() {
		return StartTime;
	}	
	
	public void setStartTime(LocalDate starttime) {
		this.StartTime = starttime;
	}
	public LocalDate getEndTime() {
		return EndTime;
	}	
	
	public void setEndTime(LocalDate endtime) {
		this.EndTime = endtime;
	}
	
	/* all functions for reference*/
	public List<SessionRecord> getSessionToSessionRecord() {
		return SessionToSessionRecord;
	}	
	
	public void addSessionToSessionRecord(SessionRecord sessionrecord) {
		this.SessionToSessionRecord.add(sessionrecord);
	}
	
	public void deleteSessionToSessionRecord(SessionRecord sessionrecord) {
		this.SessionToSessionRecord.remove(sessionrecord);
	}
	public WorkoutSchedule getSessionToSchedule() {
		return SessionToSchedule;
	}	
	
	public void setSessionToSchedule(WorkoutSchedule workoutschedule) {
		this.SessionToSchedule = workoutschedule;
	}			
	


}
